import request from "@/utils/request";

//新增接口
export const addShift = (data) => {
  return request({
    url: "plan/planClasses",
    method: "post",
    data,
  });
};
//编辑接口
export const updateShift = (data) => {
  return request({
    url: "plan/planClasses",
    method: "put",
    data,
  });
};
//查询接口
export const listShift = (params) => {
  return request({
    url: "plan/planClasses/list",
    method: "get",
    params,
  });
};
//删除接口
export const delShift = (ids) => {
  return request({
    url: `plan/planClasses/${ids}`,
    method: "delete",
  });
};
//数据回显接口
export const getShift = (id) => {
  return request({
    url: `plan/planClasses/${id}`,
    method: "get",
  });
};